package com.panshi.qa.provider.modules.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.panshi.qa.api.vo.ItemQueryVo;
import com.panshi.qa.provider.modules.domain.QaQuesitonRelevance;
import com.panshi.qa.provider.modules.domain.QaQuestion;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface QaQuestionRelevanceMapper extends BaseMapper<QaQuesitonRelevance> {
    //查询问题列表
    List<QaQuesitonRelevance> findQuestionRelevanceList(@Param("myPage") ItemQueryVo myPage, @Param("qaQuestion") QaQuestion qaQuestion, @Param("value") String value);
    //查询问题列表总计录数
    Integer findQuestionRelevanceListTotal(@Param("qaQuestion") QaQuestion qaQuestionData);
    //首页推荐问答
    List<QaQuesitonRelevance> findHomeQaQuestion();
}
